home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 2003 September / PC Answers September 2003.iso / Software / trial / AutoMate 5.0.4.1 / automate5_eval_setup.exe / Get_Task_Execution_Time.aml < prev    next >
Encoding:
Text File  |  2002-05-12  |  570 b   |  22 lines

  1. <AM5TASK>
  2. <AMTASKHEAD>
  3.     <TASKINFO TASKNAME="">
  4. <\AMTASKHEAD>
  5. <STEPS>
  6. <AMVARIABLE NAME="thecounter"></AMVARIABLE>
  7. <!--- Loop from 1 to 100 this shouldn't take too long.  Depends on 
  8. system speed. --->
  9. <AMLOOP FROM="1" TO="100" RESULTVARIABLE="thecounter">
  10. </AMLOOP>
  11. <!--- Display task execution speed information. --->
  12. <AMMESSAGEBOX>The task took:
  13. %GetTaskExecutionTimeMS()% milliseconds
  14. or 
  15. %GetTaskExecutionTimeSec()% seconds
  16. or
  17. %GetTaskExecutionTimeMin()% minutes
  18.  
  19. ...depending on how accurate you want to be</AMMESSAGEBOX>
  20. <\STEPS>
  21. </AM5TASK>
  22.